//
//  billTableViewCell.m
//  Park
//
//  Created by 123456 on 2017/11/27.
//  Copyright © 2017年 YTYangK. All rights reserved.
//

#import "billTableViewCell.h"

@implementation billTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code


    
    
}


- (void)setModelCellData:(BillModel *)modelCellData {
    
    NSLog(@"%@",modelCellData);
    
    
    self.Titlelabel.text = modelCellData.orderType;
    self.datelabel.text =modelCellData.operateTime;
    self.Expenditurelabel.text = [NSString stringWithFormat:@"-%@",modelCellData.expenditure];
    
    if ([modelCellData.orderStatus isEqualToString:@"进行中"]) {
        self.orderStatuslabel.textColor = RGB(40, 130, 60, 1.0);
        self.orderStatuslabel.text = @"订单处理中";
        
    }else if ([modelCellData.orderStatus isEqualToString:@"已完成"]){
        self.orderStatuslabel.textColor = [UIColor grayColor];
        self.orderStatuslabel.text = @"交易成功";
        
    }else if ([modelCellData.orderStatus isEqualToString:@"已取消"]){
        self.orderStatuslabel.textColor = RGB(193, 33, 71, 1.0);
        self.orderStatuslabel.text = @"交易取消";
        
    }

    
    if ([modelCellData.orderType isEqualToString:@"预约专车"]) {
        

        self.orderStatusImage.image = [UIImage imageNamed:@"车辆"];
       
        
        
    }else if([modelCellData.orderType isEqualToString:@"预约订餐"]){
        self.orderStatusImage.image = [UIImage imageNamed:@"餐厅"];

        
        
    }else if ([modelCellData.orderType isEqualToString:@"充值"]){
        
        
    }
    
    
}


@end
